import { HTTP } from '../utils/http-p.js'
const app = getApp()
class IndexModel extends HTTP{
  key = 'q'

  getUserWorks(params,start) {
    return this.request({
      url: '/v/production/getProductionList',
      method:'POST',
      data: {
        start: start,
        q: params.q,
        province: params.province,
        gender: params.gender,
        capacity: params.capacity,
        userId: params.userId,
        chargingModel: params.chargingModel
      }
    })
  }

  getPlaceList(params,start) {
    return this.request({
      url: '/v/place/getPlaceList',
      method:'POST',
      data: {
        start: start,
        q: params.q,
        province: params.province,
        gender: params.gender,
        capacity: params.capacity,
        userId: params.userId,
        chargingModel: params.chargingModel
      }
    })
  }

  getShootList(params,start) {
    return this.request({
      url: '/v/shoot/getShootList',
      method:'POST',
      data: {
        start: start,
        q: params.q,
        province: params.province,
        gender: params.gender,
        capacity: params.capacity,
        userId: params.userId,
        chargingModel: params.chargingModel
      }
    })
  }

  getIsFollowShootList(params,start) {
    app.checkLoginStatus()
    return this.request({
      url: '/v/shoot/getIsFollowShootList',
      method:'POST',
      data: {
        start: start,
        q: params.q,
        province: params.province,
        gender: params.gender,
        capacity: params.capacity,
        userId: params.userId,
        chargingModel: params.chargingModel
      }
    })
  }

  getHotWordList(topN){
    return this.request({
      url: '/v/hot/getHotWordList',
      data:{
        topN:topN
      }
    })
  }

  getIndexBackList(){
    return this.request({
      url: '/v/index/back',
      data:{

      }
    })
  }


}

export { IndexModel}
